import java.awt.GridLayout;
import javax.swing.JFrame;
/**
 * COPYRIGHT(C) 2008. Natasha Khuri. All Rights Reserved.
 * This class creates a window frame that is centered on the screen.
 * The frame contains three buttons with images.
 * @author Natasha Khuri
 * @version 1.01 2008-11-23
 *
 */
public class CardViewer
{
   public static void main(String[] args)
   {
      //constants for the frame
      final String FRAME_TITLE = "Frame with a button";
      final int FRAME_WIDTH = 400;
      final int FRAME_HEIGHT = 150;


      JFrame frame = new JFrame();
      frame.setTitle(FRAME_TITLE);

      frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);

      frame.setLocationRelativeTo(null);
      frame.setLayout(new GridLayout(1, 3, 5, 5));

      CardButton button1 = new CardButton();
      frame.add(button1);

      CardButton button2 = new CardButton();
      frame.add(button2);

      CardButton button3 = new CardButton();
      frame.add(button3);

      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setVisible(true);
   }

}

